#ifndef QT_WIN_SQ_H
#define QT_WIN_SQ_H

#include <string>
#include <iostream>
#include <fstream>
#include <string>
#include <cstdlib>

#include <QtGui/QMainWindow>

#include <vector>

#include "ui_qtWin_SQ.h"
#include "ui_qtOpenWizard.h"

#include <QSettings.h>

#include "fdecl.h"

class qtOpen_Wizard : public QWizard, public Ui::OpenWizard
{
	Q_OBJECT
public:
	qtOpen_Wizard(QWidget *parent = 0);

	virtual bool validateCurrentPage ();

	public slots:
		void makeConnections();
		
		void OnOpenBtn();
		void OnOpenBtn2();
};

class qtWin_SQ : public QMainWindow, public Ui::SQWindow
{
	Q_OBJECT
public:
	qtWin_SQ();
	//~qtWin_SQ();
	
	public slots:
		void makeConnections();

		void onActionOpen();
		void onBtnShow();
		void onBtnStop();

		void onParaChange();
		void setValueSC(const QString &);
		void setValueA1(int);
		void setValueA2(int);
		void setValueA3(int);
		void setValueE1(int);
		void setValueE2(int);
		void setValueTx(int);
		void setValueTy(int);
		void setValueB1(int);
		void setValueB2(int);
		void setValueB3(int);

		void initParameters(hybroid *h);
	/*	

signals:

		void ForceAbort();
		*/
protected:

    //void resizeEvent(QResizeEvent *event);

public:


private:

	bool m_loaded_hybroid;
	bool m_active_parameter;
	bool m_stop;
	vector m_initial_axis;

	QString filename;
	QString filename2;
};



#endif //QT_WIN_SQ_H